home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / csetup.zip / MAKEFILE < prev    next >
Text File  |  1993-12-23  |  2KB  |  106 lines

  1. ##### Module Macro #####
  2. NAME    = csetup
  3. SRCS    = $(NAME).c setupapi.c
  4. OBJS    =
  5.  
  6. ##### C7 #####
  7. C7     =  1
  8.  
  9. ##### Library Macro #####
  10. !if $(C7)
  11. LIBS    = libw slibcew ddeml oldnames mscomstf msshlstf msuilstf
  12. !else
  13. LIBS    = libw slibcew ddeml mscomstf msshlstf msuilstf
  14. !endif
  15. MOD    = -AS
  16.  
  17. ##### Include Macro #####
  18. INCLS    = $(NAME).h setupapi.h
  19.  
  20. ##### Resource Macro #####
  21. RCFILES = $(NAME).ico $(NAME).rc
  22.  
  23. ##### DEBUG Defined #####
  24. DEBUG    = 1
  25.  
  26. ##### Build Option Macros #####
  27. !if $(DEBUG)
  28. DDEF    = -DDEBUG
  29. CLOPT    = -Zid -Od -DSTRICT
  30. MOPT    = -Zi
  31. LOPT    = /CO /LI /MAP
  32. !else
  33. DDEF    =
  34. CLOPT    = -Os -DSTRICT
  35. LOPT    =
  36. !endif
  37.  
  38. ##### General Macros #####
  39. DEF    =
  40.  
  41. ##### Tool Macros #####
  42. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  43. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  44. CD  = cl -nologo -c -AMw -G2w -Zpei -W3 $(CLOPT) $(DDEF) $(DEF)
  45. LINK    = link /NOD /NOE $(LOPT)
  46. RC    = rc $(DDEF) $(DEF)
  47. HC    = hc
  48.  
  49. ##### Inference Rules #####
  50. .c.obj:
  51.     $(CC) $*.c
  52.  
  53. .asm.obj:
  54.     $(ASM) $*.asm;
  55.  
  56. .rc.res:
  57.     $(RC) -r $*.rc
  58.  
  59. ##### Main (default) Target #####
  60. goal: mscuistf.dll $(NAME).exe
  61.  
  62. dialogs.res: dialogs.rc dialogs.dlg bldver.h
  63.     rc -r dialogs.rc
  64.  
  65. dlgprocs.obj: cui.h dlgprocs.c
  66.     $(CD) dlgprocs.c
  67.  
  68. ##### Dependents For Goal and Command Line #####
  69. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  70.     $(LINK) @<<
  71.     $(SRCS:.c=.obj) $(OBJS),
  72.     $(NAME).exe,
  73.     $(NAME).map,
  74.     $(LIBS),
  75.     $(NAME).def
  76. <<
  77.     $(RC) -T $(NAME).res
  78. !if $(DEBUG)
  79. !if !$(C7)
  80.     cvpack -p $(NAME).exe
  81. !endif
  82.     mapsym $(NAME).map
  83. !endif
  84.  
  85. mscuistf.dll: mscuistf.def dlgprocs.obj dialogs.res
  86.     link @<<
  87.     /LI /CO /align:16 libentry  dlgprocs
  88.     mscuistf.dll
  89.     NUL
  90.     /NOD mdllcew libw mscomstf msuilstf msshlstf
  91.     mscuistf ;
  92. <<
  93.     rc -30 dialogs.res  mscuistf.dll
  94.  
  95. ##### Dependents #####
  96. $(SRCS:.c=.obj): $(INCLS)
  97. $(NAME).res: $(RCFILES) $(INCLS)
  98.  
  99. ##### Clean Directory #####
  100. clean:
  101.     -del *.obj
  102.     -del $(NAME).res
  103.     -del *.map
  104.     -del *.sym
  105.     -del dialogs.res
  106.